/*
 * Copyright (c) 2006-2020, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-09-02     RT-Thread    first version
 */

#include <rtthread.h>
#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>
#include "dfs_fs.h"
#include "dfs_nfs.h"

int main(void)
{
#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
    {
        if (dfs_mount(RT_NULL, "/", "nfs", 0, RT_NFS_HOST_EXPORT) == 0)
            rt_kprintf("NFSv3 File System initialized!\n");
        else
            rt_kprintf("NFSv3 File System initialzation failed!\n");
    }
#endif
    while (1)
    {
        rt_thread_mdelay(1000);
    }

    return RT_EOK;
}
